home *** CD-ROM | disk | FTP | other *** search
- @echo off
- ::
- :: This batch file uses FFG to scan for a virus signature in COM and EXE files.
- ::
- :: explanation of FFG options used:
- ::
- :: /qmf = quiet except for meter and found files
- :: /v5 = 50 line video
- :: /p = pause after full screen
- :: /bfd = beep when found and when done
- :: /$ = case-sensitive string to search for
- :: /:!CN = skip scan of CD-ROM and network drives
- ::
- :: In this case it searches for the signature "KAOS4"
- ::
- echo Scanning for KAOS4 virus...
- echo.
- echo To quit press [ESC]
- echo To skip current drive press S
- echo.
- ffg *:*.[com,exe] /$=cKAOS4 /qmf /:!CN /v5 /p /bfd
- if errorlevel 0 if not errorlevel 1 goto NOVIRUS
- if errorlevel 2 goto ABORT
- echo.
- echo Virus signature found in one or more files listed above.
- echo.
- echo Contact someone who can remove this virus.
- pause
- goto END
- :ABORT
- echo.
- echo Virus scan aborted or an error occurred during scan.
- echo.
- goto END
- :NOVIRUS
- echo.
- echo No virus was found.
- echo.
- :END
-